package Pojo::Housework;

use strict;
use warnings;

use Moose;
use Exporter qw(import);

our @EXPORT_OK = qw();


has 'id' => ( 	
		is	  => 'ro',
	  	isa	  => 'Int',
	  	default   => 1,
		writer	  => '_set_id',
	    );

has 'time' => (
		is	=> 'ro',
		isa	=> 'Str',
		default	=> '1970-07-01 00:00:00',
		writer	=> '_set_time',
	      );

has 'task' => (
		 is	 => 'ro',
		 isa	 => 'Str',
		 default => '',
		 writer  => '_set_task',
	       );

has 'reward' => (
		is	=>  'ro',
		isa	=>  'Str',
		default =>  '',
		writer	=>  '_set_reward',
);

has 'user_id' => (
		is	=>  'ro',
		isa	=>  'Int',
		default =>  0,
		writer	=>  '_set_user_id',
);

has 'user_name' => (
		is	=>  'ro',
		isa	=>  'Str',
		default =>  '',
		writer	=>  '_set_user_name',
);

has 'status' => (
		is	=>  'ro',
		isa	=>  'Int',
		default =>  0,
		writer	=>  '_set_status',
);

has 'avatar' => (
		is	=>  'ro',
		isa	=>  'Str',
		default =>  '',
		writer	=>  '_set_avatar'
);

no Moose;

1;
